package org.atlantis.grosbeak.pot.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 把数据库中查询出来的数据映射到一个Float中。
 * 
 * @author <a href="mailto:seenoevil.cn@gmail.com">SeeNoEvil</a>
 * 
 */
public class FloatRowMapper extends RowMapper<Float> {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.atlantis.grosbeak.pot.mapper.RowMapper#mapRow(java.sql.ResultSet,
	 * java.lang.String[], int[])
	 */
	public Float mapRow(ResultSet rs, String[] names, int[] types)
			throws SQLException {
		return rs.getFloat(1);
	}
}
